package com.kang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kang.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.vo.AssginRoleVo;
import com.kang.vo.SysUserQueryVo;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author yuhongkang
 * @since 2023-01-04
 */
public interface SysUserService extends IService<SysUser> {

    IPage<SysUser> selectSysUserList(Long page, Long limit, SysUserQueryVo sysUserQueryVo);

    Integer savsSysUser(SysUser sysUser) throws Exception;

    SysUser getUserById(Integer id);

    Integer updateSysUser(SysUser sysUser);

    Integer deleteSysUserById(Integer id);

    Integer updateStatus(Integer id, Integer status);

    Map<String, Object> getRoleId(Integer userId);

    Object doAssign(AssginRoleVo assginRoleVo);
}
